package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class StockException extends RuntimeException{
    private final Code code;

    public StockException(Code code){
        this.code=code;
    }
}
